package com.mmd.common.enums;

public enum LogisticsStatusEnums {
	no_logistics("0","无轨迹"),
	pick("1","已揽收"),
	in_transit("2","在途中"),
	sign_complete("3","签收"),
    bad("4","问题件"),
	;

	private LogisticsStatusEnums(String code, String name) {
		this.code = code;
		this.name = name;
	}
	
	public static LogisticsStatusEnums getStatusEnum(String code){
		LogisticsStatusEnums[] enumArr = LogisticsStatusEnums.values();
		for (LogisticsStatusEnums e : enumArr){
			if (code.equals(e.getCode())){
				return e;
			}
		}
		return null;
	}
	
	private String code;
	private String name;
	
	public String getCode() {
		return code;
	}
	public String getName() {
		return name;
	}
}
